const userInfoKey = 'userInfo'
const tokenKey = 'token'
const jscodeKey = 'jscodeKey'
const historyKey = 'history'
let setUserInfo = function(DATA){
	 uni.setStorageSync(userInfoKey,DATA)
}
let getUserInfo = function(){
	return uni.getStorageSync(userInfoKey)
}
let setToken = function(DATA){
	 uni.setStorageSync(tokenKey,DATA)
}
let getToken = function(){
	return uni.getStorageSync(tokenKey)
}

let  removeToken = function(){
	uni.removeStorageSync(tokenKey)
}  

let setHistory   = function(DATA){
 	uni.setStorageSync(historyKey,DATA)
}

let getHistory = function(){
	return uni.getStorageSync(historyKey)
}

let removeHistory = function(){
	uni.removeStorageSync(historyKey)
}
// let setJsCode = function(DATA){
// 	 uni.setStorageSync(jscodeKey,DATA)
// }

// let getJsCode = function(){
// 	return uni.getStorageSync(jscodeKey)
// }



export {
	setUserInfo,
	getUserInfo,
	setToken,
	getToken,
	removeToken,
	setHistory,
	getHistory,
	removeHistory
	// setJsCode,
	// getJsCode
	};